import  pandas as pd
index=['王蒙','李珊','赵胜','刘文']
columns=['语文','数学','英语']
dict={'语文': [110,95,98,112],'数学':[120,110,50,100],'英语': [105,108,100,97]}
df1=pd.DataFrame(dict,index)
print('使用字典创建的DataFrame对象df1: \n', df1)
s1=pd.Series([110,120,105],columns)
s2=pd.Series([16,19,90],columns)
s3=pd.Series([56,78,85],columns)
s4=pd.Series([10,122,89],columns)
df2=pd.DataFrame([s1,s2,s3,s4],index)
print('使用Series对象创建的DataFrame对象df2: \n',df2)